/*
 * *****************************************************************************
 * Copyright (c) 2013-2014 CriativaSoft (www.criativasoft.com.br)
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * - Ricardo JL Rufino - Initial API and Implementation
 * *****************************************************************************
 */

package br.com.criativasoft.opendevice.connection.message;

import java.util.UUID;

/**
 * Base class for Message
 * @author Ricardo JL Rufino
 * @date 02/09/14.
 */
public class AbstractMessage implements Message {
    private String uid = UUID.randomUUID().toString(); // Logic level user ID.
    private String connectionUUID; // id of connection/channel that requested the command

    public String getConnectionUUID() {
        return connectionUUID;
    }

    public void setConnectionUUID(String connectionUUID) {
        this.connectionUUID = connectionUUID;
    }

    public String getUid() {
        return uid;
    }
}
